﻿<%@ Page Title="Add New Employee" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="addNewEmployeePage.aspx.cs" Inherits="WHM3.addNewEmployee.addNewEmployeePage" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
    </hgroup>

     <section id="addNewEmployeeForm">
       
            <LayoutTemplate>
                <p class="validation-summary-errors">
                    <asp:Literal runat="server" ID="FailureText" />
                </p>
                <fieldset>
                    <legend>fill all fields</legend>
                    <ol>
                        <li>
                            <asp:Label ID="Label1" runat="server" AssociatedControlID="ID">ID</asp:Label>
                            <asp:TextBox runat="server" ID="ID" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ID" CssClass="field-validation-error" ErrorMessage="The ID field is required." />
                        </li>
                        <li>
                            <asp:Label ID="Label2" runat="server" AssociatedControlID="firstName">First Name</asp:Label>
                            <asp:TextBox runat="server" ID="firstName" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="firstName" CssClass="field-validation-error" ErrorMessage="The First Name field is required." />
                        </li>
                        <li>
                            <asp:Label ID="Label4" runat="server" AssociatedControlID="lastName">Last Name</asp:Label>
                            <asp:TextBox runat="server" ID="lastName" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="lastName" CssClass="field-validation-error" ErrorMessage="The Last Name field is required." />
                        </li>
                        <li>
                            <asp:Label ID="Label5" runat="server" AssociatedControlID="Position">Position</asp:Label>
                            <asp:TextBox runat="server" ID="Position" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Position" CssClass="field-validation-error" ErrorMessage="The Position field is required." />
                        </li>
                        <li>
                            <asp:Label ID="Label6" runat="server" AssociatedControlID="Team">Team</asp:Label>
                            <asp:TextBox runat="server" ID="Team" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Team" CssClass="field-validation-error" ErrorMessage="The Team field is required." />
                        </li>
                        <li>
                            <asp:Label ID="Label8" runat="server" AssociatedControlID="Team">Min Hours</asp:Label>
                            <asp:TextBox runat="server" ID="minHours" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="minHours" CssClass="field-validation-error" ErrorMessage="The Min Hours field is required." />
                        </li>
                        <li>
                            <asp:CheckBox runat="server" ID="isManager" />
                            <asp:Label ID="Label3" runat="server" AssociatedControlID="isManager" CssClass="checkbox">is Manager?</asp:Label>
                        </li>
                        <li>
                            <asp:CheckBox runat="server" ID="isAdmin" />
                            <asp:Label ID="Label7" runat="server" AssociatedControlID="isAdmin" CssClass="checkbox">is Admin?</asp:Label>
                        </li>
                    </ol>
                    <asp:Button ID="Button1" runat="server" CommandName="Login" Text="Add To DB" OnClick="addToDB" />
                </fieldset>
                
            </LayoutTemplate>
         <h3><asp:Label ID="problem" Visible="false" runat="server" ForeColor="Red"/></h3>
    </section>


</asp:Content>